include $(LITEOSTOPDIR)/config.mk

MODULE_NAME := spinor_flash

SRCS_HOST = $(wildcard src/$(NOR_DRIVER_DIR)/*.c)

SRCS_COMMON_TMP0 = $(wildcard src/common/*.c)
SRCS_COMMON = $(subst $(SRCS_COMMON_DEL0),,$(SRCS_COMMON_TMP0))
LOCAL_SRCS := $(SRCS_COMMON) $(SRCS_HOST)

LOCAL_FLAGS := 	-I$(LITEOSTOPDIR)/../../vendor/allwinner/sun8i/driver/mtd/common/include \
				-I$(LITEOSTOPDIR)/../../vendor/allwinner/sun8i/driver/mtd/spi_nor/include

include $(MODULE)
